package com.hamster.crmpre.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hamster.crmpre.pojo.HandOverCustomerAssets;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

@Repository
@Mapper
public interface HandOverCustomerAssetsMapper extends BaseMapper<HandOverCustomerAssets> {
    @Select("select * from hand_over_customer_assets where id =#{messageLink}")
    HandOverCustomerAssets selectByMessageLinkId(@Param("messageLink") String messageLink);

    @Update("update hand_over_customer_assets set  state= #{object.state},auditor_id= #{object.auditorId},auditor_name=#{object.auditorName} where id = #{object.id}")
    void updateStateById(@Param("object") HandOverCustomerAssets handOverCustomerAssets);
}
